package com.sky.service;

import com.sky.entity.AddressBook;

import java.util.List;

public interface AddressBookService {

    List<AddressBook> getAllAddressBook();

    void addAddressBook(AddressBook addressBook);

    AddressBook getDefaultAddressBook();

    void updateAddressBook(AddressBook addressBook);

    void deleteById(Long id);

    AddressBook getById(Long id);

    void setDefaultAddress(AddressBook addressBook);

    void updateIsDefaultByUserId(AddressBook addressBook);
}
